package com.lms.logistics_management_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor  //自动创建无参构造
@AllArgsConstructor //自动创建有参构造
//mybatis-plus会直接去数据库中查找，名字必须一致或者用tablename
@TableName(value = "measure")
@ToString
public class Measure {
    @TableId(type = IdType.AUTO)
    @TableField(value = "measure_id")
    private Integer measureId;

    @TableField(value = "measure_kind_id")
    private Integer measureKindId;

    @TableField(value = "diagnostic_id")
    private Integer diagnosticId;

    @TableField(value = "doctor_id")
    private Integer doctorId;

    @TableField(value = "measure_result")
    private String measureResult;

    @TableField(value = "measure_create_time")
    private LocalDateTime measureCreateTime;
}
